package Reflect;
/**
     反射第一步：获取Class对象
 */
public class Test {

    public static void main(String[] args) throws Exception {
        //1.包名+类名
        Class c = Class.forName("Reflect.Student");

        //2.类名.class
        Class c1=Student.class;


        //2.对象.getClass()
        Student s=new Student();
        Class c2 = s.getClass();

    }
}
